﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhy.DigitaPlatform.Entities
{
    /// <summary>
    /// 设备数据库实体类
    /// </summary>
    public class DeviceEntity
    {
        /// <summary>
        /// 组件编号
        /// </summary>
        public string DeviceNum { get; set; }
        /// <summary>
        /// x轴坐标
        /// </summary>
        public string X { get; set; }
        /// <summary>
        /// Y轴坐标
        /// </summary>
        public string Y { get; set; }
        /// <summary>
        /// 层级
        /// </summary>
        public string Z { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public string W { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public string H { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string DeviceTypeName { get; set; }
        /// <summary>
        /// 组件标题
        /// </summary>
        public string Header { get; set; }
        /// <summary>
        /// 管道组件流向
        /// </summary>
        public string FlowDirection { get; set; } = "0";
        /// <summary>
        /// 组件角度
        /// </summary>
        public string Rotate { get; set; } = "0";

        /// <summary>
        /// 设备属性集合
        /// </summary>
        public List<DevicePropItemEntity> Props { get; set; }
        /// <summary>
        /// Modbus属性-变量集合
        /// </summary>
        public List<VariableEntity> Vars { get; set; }
    }
}
